import request from "@/utils/request";
const url="/api/furn";
// 新增家居
export function addFurn(data) {
    return request({
        url: `${url}/save`,
        method: 'post',
        data: data
    })
}

// 家居列表
export function listFurn(query) {
    return request({
        url: `${url}/list`,
        method: 'get',
        params: query
    })
}

// 家居列表分页
export function pageFurn(query) {
    return request({
        url: `${url}/listPage`,
        method: 'get',
        params: query
    })
}

// 家居列表分页检索
export function listSearch(query) {
    return request({
        url: `${url}/listSearch`,
        method: 'get',
        params: query
    })
}

// 修改家居
export function editFurn(row) {
    return request({
        url: `${url}/edit`,
        method: 'put',
        data: row
    })
}

// 修改家居
export function deleteFurn(id) {
    return request({
        url: `${url}/delete/${id}`,
        method: 'delete'
    })
}